package com.lixiaohan.lushudaohou.dao;

import com.lixiaohan.lushudaohou.entity.RoamUserInfo;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;

import java.util.List;

public interface RoamUserInfoDao extends JpaRepository<RoamUserInfo, Integer> {

    @Query(value = "select * from roam_user_info where user_id=16",nativeQuery = true)
    List<RoamUserInfo> getOne();

}
